<%@ page import="DOMAIN.ScheduledItem" %>

<html>
<head>
<title>&Eacute;diter t&acirc;che &agrave; planifi&eacutee</title>
 <link rel="stylesheet" href="style.css">
</head>
<body>	

<div id="topNav" >
<%@ include file="menu.jsp" %>	
</div>
<div id="content"  >
<h2 ><span>&Eacute;diter t&circ;che &agrave; </span>planifi&eacutee</h2>
 <div id="leftContent">
			<% ScheduledItem bi = ((ScheduledItem)request.getAttribute("ScheduledItem"));
			
			if(bi==null)
		{
	 %>

	<span class="error">Aucune item associ&eacute;e</span>
	<%
	}
	else
	{ 
			%>
			<form name="firstForm" method="post" action="DetailScheduledItem?id=<%= bi.GetId() %>"  >
			<%@ include file="Formulaire.jsp" %>
            <label>Pour la date du</label>
            <input type=text name="scheduledfordate" value="<%= bi.GetScheduledForDate()%>">
            <input type="submit" value="modifier">
			</form>
	 <% } %>
     </div>
    <div id="rightContent">
    <h3>Action</h3>    
    <p>
    <ul>
    <% if(bi!=null) {%><li>
    <a href="DetailScheduledItem?id=<%= bi.GetId() %>" >Annuler</a></li> 
    <%}%>
    <li><a href="ListScheduledItem" >Retour liste</a></li>
    </ul>
    </p>
    </div>
    </div>
	</body>
</html>
